Remove obsolete comment. (poll_func): Remove assert and add a comment on
authorRichard Hult <richard@imendio.com>
Mon, 15 May 2006 19:01:57 +0000 (19:01 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 15 May 2006 19:01:57 +0000 (19:01 +0000)
2006-05-15  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkevents-quartz.c (_gdk_events_init): Remove obsolete
comment.
(poll_func): Remove assert and add a comment on how to fix properly.
(gdk_events_pending): Implement.

ChangeLog
ChangeLog.pre-2-10
gdk/quartz/gdkevents-quartz.c

index a271664dcbe295e5c219eb95606e5ce83c374601..d09f0c6dfd3169bf860dee9aa8d88d5798cd5962 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-15  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkevents-quartz.c (_gdk_events_init): Remove obsolete 
+       comment.
+       (poll_func): Remove assert and add a comment on how to fix properly.
+       (gdk_events_pending): Implement.
+
 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkprintoperation.c: Reverse the order of
index a271664dcbe295e5c219eb95606e5ce83c374601..d09f0c6dfd3169bf860dee9aa8d88d5798cd5962 100644 (file)
@@ -1,3 +1,10 @@
+2006-05-15  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkevents-quartz.c (_gdk_events_init): Remove obsolete 
+       comment.
+       (poll_func): Remove assert and add a comment on how to fix properly.
+       (gdk_events_pending): Implement.
+
 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkprintoperation.c: Reverse the order of
index 3f6c94a3d465d07d454578faf7407b94f145635b..9f72be90b65d4d471b2cf59d3f6409bbadc672fe 100644 (file)
@@ -283,8 +283,11 @@ poll_func (GPollFD *ufds, guint nfds, gint timeout_)
     {
       ufds[0].revents = G_IO_IN;
 
-      g_assert (current_event == NULL);
-      
+      /* FIXME: We can't assert here, what we need to to is to have a queue
+       * for events instead.
+       */
+      /*g_assert (current_event == NULL);*/
+
       current_event = [event retain];
 
       n_active ++;
@@ -309,9 +312,6 @@ _gdk_events_init (void)
   g_source_set_can_recurse (source, TRUE);
   g_source_attach (source, NULL);
 
-  /* FIXME: I really hate it that we need a custom poll function here.
-   * I think we can do better using threads.
-   */
   old_poll_func = g_main_context_get_poll_func (NULL);
   g_main_context_set_poll_func (NULL, poll_func);  
 
@@ -322,8 +322,8 @@ _gdk_events_init (void)
 gboolean
 gdk_events_pending (void)
 {
-  /* FIXME: Implement */
-  return FALSE;
+  return (_gdk_event_queue_find_first (_gdk_display) ||
+         (current_event != NULL));
 }
 
 GdkEvent*